#if !defined(_INCLUDE_COMMONDATA_H_FF995FE9_62E7_4860_908B_327CE93B225B)
#define _INCLUDE_COMMONDATA_H_FF995FE9_62E7_4860_908B_327CE93B225B

#define VOLUME_FULL     0L
#define VOLUME_SILENCE  -10000L
#define WM_GRAPHNOTIFY  WM_USER+13

#define DEFAULT_AUDIO_WIDTH     240
#define DEFAULT_AUDIO_HEIGHT    120
#define DEFAULT_VIDEO_WIDTH     320
#define DEFAULT_VIDEO_HEIGHT    240
#define MINIMUM_VIDEO_WIDTH     200
#define MINIMUM_VIDEO_HEIGHT    120

#define SAFE_RELEASE(x) { if (x) x->Release(); x = NULL; }

#define JIF(x) if (FAILED(hr=(x))) \
	{Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr); return hr;}

#define LIF(x) if (FAILED(hr=(x))) \
	{Msg(TEXT("FAILED(hr=0x%x) in ") TEXT(#x) TEXT("\n\0"), hr);}


#define FILE_FILTER_TEXT \
	TEXT("Video Files (*.avi; *.qt; *.mov; *.mpg; *.mpeg; *.m1v)\0*.avi; *.qt; *.mov; *.mpg; *.mpeg; *.m1v\0")\
	TEXT("Audio files (*.wav; *.mpa; *.mp2; *.mp3; *.au; *.aif; *.aiff; *.snd)\0*.wav; *.mpa; *.mp2; *.mp3; *.au; *.aif; *.aiff; *.snd\0")\
	TEXT("MIDI Files (*.mid, *.midi, *.rmi)\0*.mid; *.midi; *.rmi\0") \
	TEXT("Image Files (*.jpg, *.bmp, *.gif, *.tga)\0*.jpg; *.bmp; *.gif; *.tga\0") \
	TEXT("All Files (*.*)\0*.*;\0\0")

// extern HWND      ghApp;
// //extern HMENU     ghMenu;
// //extern HINSTANCE ghInst;
// extern TCHAR     g_szFileName[MAX_PATH];
// extern BOOL      g_bAudioOnly, g_bFullscreen;
// extern LONG      g_lVolume;
// extern DWORD     g_dwGraphRegister;
// extern PLAYSTATE g_psCurrent;
// extern double    g_PlaybackRate;
// 
// extern IGraphBuilder *pGB;
// extern IMediaControl *pMC;
// extern IMediaEventEx *pME;
// extern IVideoWindow  *pVW;
// extern IBasicAudio   *pBA;
// extern IBasicVideo   *pBV;
// extern IMediaSeeking *pMS;
// extern IMediaPosition *pMP;
// extern IVideoFrameStep *pFS;

#endif